package com.moon.utils;


import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * 验证电话格式为13以内的纯数字
 * @return true | false
 */
public class TelUtils {

    private static final Pattern pattern = Pattern.compile("^\\d{1,13}$");

    public static boolean validate(String phoneNumber) {
        Matcher matcher = pattern.matcher(phoneNumber);
        return matcher.matches();
    }

}
